package errors

const (
	SUCCESS             = 0
	EC_NO_ACCESS        = 1001
	EC_NOT_RECORD       = 1002
	EC_INVALID_ID       = 1003
	EC_PARAM            = 1004
	EC_TOKEN_EXPIRED    = 1005
	EC_DB               = 1006
	EC_PWD              = 1007
	EC_CREATE_USER      = 1008
	EC_USERNAMEORPWD    = 1009
	EC_SIGN             = 1010
	EC_VALID_TIME       = 1011
	EC_KICK             = 1012
	EC_BALANCE_LACK     = 1013
	EC_VERIFY           = 1014
	EC_HAVING_GAME      = 1015
	EC_REORDER          = 1016
	EC_USER_EXIST        = 1017
	EC_RECHARGE_BALANCE  = 1018
	EC_WITHDRAW_BALANCE  = 1019
	EC_RECHARGE          = 1020
	EC_WITHDRAW          = 1021
	EC_LOAD_GAME         = 1022
	EC_USER_HAVING_EXIST = 1023
	EC_WITH_SYSTEM       = 1024
	EC_WITH_ACCOUNT      = 1025
)

var ErrCode = map[int]string{
	SUCCESS:          "成功返回",
	EC_NO_ACCESS:     "禁止访问",
	EC_NOT_RECORD:    "记录未发现",
	EC_INVALID_ID:    "无效用户id",
	EC_PARAM:         "非法请求",
	EC_TOKEN_EXPIRED: "Token过期",
	EC_DB:            "数据库错误",
	EC_PWD:           "密码错误",
	EC_CREATE_USER:   "创建用户失败",
	EC_USERNAMEORPWD: "用户名或密码错误",
	EC_SIGN:          "签名错误",
	EC_VALID_TIME:    "时间已过期",
	EC_KICK:          "踢用户下限失败",
	EC_BALANCE_LACK:  "余额不足",
	EC_VERIFY:        "验证码错误",
	EC_HAVING_GAME:   "游戏中禁止上下分",
	EC_REORDER:       "订单号重复",
	EC_USER_EXIST:        "用户不存在",
	EC_RECHARGE_BALANCE:  "上分金额错误",
	EC_WITHDRAW_BALANCE:  "下分金额错误",
	EC_RECHARGE:          "上分失败",
	EC_WITHDRAW:          "下分失败",
	EC_LOAD_GAME:         "加载游戏失败",
	EC_USER_HAVING_EXIST: "用户已经存在",
	EC_WITH_SYSTEM:       "下分失败，系统错误",
	EC_WITH_ACCOUNT:      "下分失败，账户异常",
}
